package com.thkj.modules.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.thkj.modules.dao.CommWorkerMapper;
import com.thkj.modules.user.entity.CommWorker;
import com.thkj.modules.user.service.ICommWorkerService;

@Service
public class CommWorkerServiceImpl implements ICommWorkerService {

    @Autowired
    private CommWorkerMapper commWorkerDao;

    public void save(CommWorker worker) {
        commWorkerDao.insert(worker);
    }

    @Override
    public List<CommWorker> query(CommWorker worker) {
        return commWorkerDao.select(worker);
    }
}
